import java.io.*;
import java.util.*;

public class Main {
	String input;
	StringTokenizer st;
	BufferedReader bf;
	StringBuilder sb;
	
	final int squareLength = 100;
	int i,
	    n;
	
	public Main() {
		bf = new BufferedReader(new InputStreamReader(System.in));
		sb = new StringBuilder();
	}
	
	public static void main(String[] args) {
		Main main = new Main();
		main.beginProcess();
	}

	void beginProcess() {
		try {
			while((input = bf.readLine()) != null) {
				st = new StringTokenizer(input);
				n = Integer.parseInt(st.nextToken());
				for(i = 0; i < n; i++) {
					input = bf.readLine();
					st = new StringTokenizer(input);
					if(isInside(Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()))) {
						sb.append("inside\n");
					} else {
						sb.append("outside\n");
					}
				}
			}
			System.out.print(sb);
		}
		catch(Exception ex) {
			System.err.println(ex.toString());
		}
	}
	
	boolean isInside(int x, int y) {
		if(x <= squareLength && y <= squareLength) return true;
		return false;
	}
	
}